package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Links;
import com.ws.ssmzongjie3.mapper.LinksMapper;
import com.ws.ssmzongjie3.service.LinksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinksServiceImpl implements LinksService {
    @Autowired
    private LinksMapper linksMapper;

    @Override
    public int deleteById(Integer linksId) {

        return linksMapper.deleteById(linksId);
    }

    @Override
    public int insertLinks(Links record) {

        return linksMapper.insertLinks(record);
    }

    @Override
    public int updateById(Links record) {
        return  linksMapper.updateById(record);
    }

    @Override
    public Links getById(Integer linksId) {
        return linksMapper.getById(linksId);
    }

    @Override
    public List<Links> listLinks(Links links) {
        return linksMapper.listLinks(links);
    }
}
